#define  _CRT_SECURE_NO_WARNINGS	1
#include <stdio.h>
#include <assert.h>
#include <string.h>
int my_strcmp(const char* e1, const char* e2)
{
	while (*e1 == *e2)
	{
		e1++;
		e2++;
		if (*e1 == '\0' || *e2 == '\0')
			break;
	}
	return *(int*)e1 - *(int*)e2;
}
int main()
{
	char arr[30] = "abcdef";
	char arr1[] = "abx";
	printf("%d\n", my_strcmp(arr, arr1));
	return 0;
}
